import os

# 设置环境变量

os.environ['http_proxy'] = 'http://hewei:wico2023@ddns.sunnyho.eu.org:7893'
os.environ['https_proxy'] = 'http://hewei:wico2023@ddns.sunnyho.eu.org:7893'

from ultralytics import FastSAM

# Create a FastSAM model
model = FastSAM("FastSAM-s.pt")  # or FastSAM-x.pt

# Track with a FastSAM model on a video
results = model.track(source="test.mp4", imgsz=640)
